Lifecycle functions (1/9)
List all lifecycle methods.
    Lifecycle methods are available to class based components:
    • constructor
    • static getDerivedStateFromProps
    • render()
    • componentDidMount
    • getSnapshotBeforeUpdate
    • shouldComponentUpdate
    • componentDidUpdate -> after the component updates
    • componentWillUnmount() → cleanup when the component is unmounting
    • componentDidCatch